package com.longbo.leaf.portal.mapper;

import com.longbo.leaf.portal.model.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author longbo
 * @since 2021-02-01
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    Optional<User> findUserByUsername(String username);
    List<User> selectUserAll();
    int deleteUserByUserId(String userId);
}
